@import url(./base.less);
@num: 37.5rem;

.house {
  padding: 0 (15 / @num);
  background-color: #ffffff;

  // 头部
  .house-top {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    z-index: 9999;
    padding: 0 (15 / @num);
    display: flex;
    height: (46 / @num);
    justify-content: space-between;
    align-items: center;
    margin-bottom: (14 / @num);
    .text {
      width: (48 / @num);
      p {
        font-size: (16 / @num);
        color: #353535;
      }
    }
    .among {
      flex: 1;
      font {
        display: block;
        height: (32 / @num);
        border-radius: (16 / @num);
        background-color: #f7f7f7;
        img {
          width: (20 / @num);
          line-height: (32 / @num);
          object-fit: cover;
          margin-left: (16 / @num);
          margin-right: (8 / @num);
          vertical-align: top;
          margin-top: (8 / @num);
        }
        input {
          vertical-align: top;
          margin-top: (8 / @num);
          background-color: #f7f7f7;
          &::placeholder {
            font-size: (14 / @num);
            color: #b2b2b2;
          }
        }
      }
    }
    .right {
      width: (19 / @num);
      height: (46 / @num);
      margin-left: (26 / @num);
      padding-top: (60 / @num);
      .pic {
        width: (20 / @num);
        height: (25 / @num);
        img {
          vertical-align: top;
          width: 100%;
          object-fit: cover;
          margin-top: (-40 / @num);
        }
      }
    }
  }

  // 图片
  .picture {
    margin-top: (60 / @num);
    width: 100%;
    // margin-bottom: (8 / @num);
    .pic {
      width: 100%;
      img {
        width: 100%;
        object-fit: cover;
      }
    }
  }

  // 椭圆
  .oval {
    position: absolute;
    top: (200 / @num);
    left: (160 / @num);
    display: flex;
    justify-content: center;
    height: (2 / @num);
    img {
      width: (10 / @num);
      height: 100%;
      object-fit: cover;
      margin-right: (8 / @num);
    }
  }

  //租房方式
  .way {
    margin-top: (12 / @num);
    height: (70 / @num);
    display: flex;
    margin-bottom: (36 / @num);
    .pic {
      width: 45%;
      height: (70 / @num);
      margin-right: 5%;
      img {
        width: 100%;
        height: 100%;
        object-fit: cover;
      }
    }
  }

  // 超值优惠
  .preferential {
    .preferential-top {
      display: flex;
      justify-content: space-between;
      height: (40 / @num);
      align-items: center;
      margin-bottom: (10 / @num);
      p {
        font-size: (20 / @num);
        color: #353535;
        font-weight: 700;
      }

      span {
        height: (14 / @num);
        img {
          margin-top: (-20 / @num);
          height: 100%;
          object-fit: cover;
        }
      }
    }
    .preferential-buttom {
      display: flex;
      justify-content: space-between;
      .left {
        width: 45%;
        margin-right: (5 / @num);
        .pic {
          width: 100%;
          object-fit: cover;
          margin-bottom: (12 / @num);
          img {
            width: 100%;
            object-fit: cover;
          }
        }
        p {
          // height: (13 / @num);
          font-size: (16 / @num);
          color: #353535;
        }
        span {
          display: block;
          height: (11 / @num);
          font-size: (12 / @num);
          color: #aaaaaa;
          margin-top: (8 / @num);
          margin-bottom: (12 / @num);
        }
        i {
          display: block;
          height: (11 / @num);
          font-size: (12 / @num);
          color: #f5a928;
        }
      }
      .right {
        width: 45%;
        margin-right: (5 / @num);
        .pic {
          width: 100%;
          object-fit: cover;
          margin-bottom: (12 / @num);
          img {
            width: 100%;
            object-fit: cover;
          }
        }
        p {
          // height: (13 / @num);
          font-size: (16 / @num);
          color: #353535;
        }
        span {
          display: block;
          height: (11 / @num);
          font-size: (12 / @num);
          color: #aaaaaa;
          margin-top: (8 / @num);
          margin-bottom: (12 / @num);
        }
        i {
          display: block;
          height: (11 / @num);
          font-size: (12 / @num);
          color: #f5a928;
        }
      }
    }
  }

  //广告
  .advertisement {
    margin-top: (20 / @num);
    margin-bottom: (36 / @num);
    .pic {
      width: 100%;
      img {
        width: 100%;
        object-fit: cover;
      }
    }
  }

  //推荐
  .recommend {
    .recommend-top {
      display: flex;
      justify-content: space-between;
      p {
        font-size: (20 / @num);
        color: #353535;
        font-weight: 700;
      }
      .hire {
        span {
          position: relative;
          font-size: (12 / @num);
          font-weight: 700;
          margin-right: (22 / @num);
          i {
            position: absolute;
            left: (6 / @num);
            bottom: (-2 / @num);
            display: block;
            width: (10 / @num);
            height: (2 / @num);
            background-color: #17a5ef;
            border-radius: (1 / @num);
          }
        }
      }
    }

    .recommend-buttom {
      ul {
        li {
          display: flex;
          margin-bottom: (8 / @num);
          .pic {
            width: (110 / @num);
            margin-right: (16 / @num);
            img {
              width: 100%;
              object-fit: cover;
            }
          }
          .text {
            display: flex;
            width: (200 / @num);
            flex-direction: column;
            
            p {
              font-size: (16 / @num);
              font-weight: 700;
              color: #353535;
            }
            span {
              margin-top: (8 / @num);
              font-size: (12 / @num);
              color: #aaaaaa;
              white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            }
            i {
                margin: (8 / @num) 0;
              display: flex;
              p {
                width: (45 / @num);
                height: (16 / @num);
                border: (1 / @num) solid #353535;
                border-radius: (5 / @num);
                font-size: (12 / @num);
                text-align: center;
                line-height: (16 / @num);
                margin-right: (8 / @num);
              }
            }
            .first {
              display: flex;
              p {
                display: block;
                font-size: (14 / @num);
                color: #f59f11;
              }
              span {
                height: (11 / @num);
                font-size: (12 / @num);
                color: #f59f11;
              }
            }
          }
        }
      }
    }
  }

  //   查看更多

  .more {
    width: (260 / @num);
    height: (38 / @num);
    border-radius: (19 / @num);
    background-color: #f2f2f3;
    margin: (24 / @num) auto;
    p {
        font-size: (14 / @num);
        color: #aaaaaa;
        text-align: center;
        line-height: (38 / @num);
    }
  }

  .pic {
    width: 100%;
    margin-bottom: (62 / @num);
    img {
        width: 100%;
        object-fit: cover;
    }
  }

  .buttom {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    z-index: 9999;
    ul {
        display: flex;
        justify-content: space-around;
        height: (50 / @num);
        align-items: center;
        li {
            text-align: center;
            span {
              width: (20 / @num);
              height: (20 / @num);
              img {
                width: 100%;
                height: 100%;
                object-fit: cover;
              }
            }
            p {
                font-size: (12 / @num);
            }
            &:first-child {
                color: #353535;
                font-weight: 700;
            }
        }
    }
  }
}
